package com.rayboot.footpoint.db;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

public abstract class IBaseTable {
	protected SQLiteDatabase db;

	public IBaseTable(SQLiteDatabase db) {
		super();
		this.db = db;
	}

	public abstract void create();

	public abstract boolean insert(Object obj);

	public abstract boolean update(Object obj);

	public abstract int remove(Object obj);

	public abstract Cursor getAllData();

	public abstract void drop();

	public abstract int removeAllData();

	public abstract Cursor getDataBySomething(String rule);
}
